//
//  HomeItemModel.m
//  huashiedu
//
//  Created by oceans on 2018/8/26.
//  Copyright © 2018年 hema. All rights reserved.
//

#import "HomeItemModel.h"
#import "ClassTypeObject.h"

@implementation HomeItemModel

- (instancetype)initWithName:(NSString *)name image:(NSString *)image {
    self = [super init];
    if (self) {
        _name = name;
        _image = image;
        __id = [[ClassTypeObject shared] findIdWithName:name];
    }
    return self;
}

+ (NSArray<HomeItemModel *> *)items {
    
    NSArray *array = @[
                       [[HomeItemModel alloc] initWithName:@"书法绘画" image:@"shufahuihua"],
                       [[HomeItemModel alloc] initWithName:@"英语口才" image:@"yingyukoucai"],
                       [[HomeItemModel alloc] initWithName:@"舞蹈跆拳" image:@"wudaotaiquan"],
                       [[HomeItemModel alloc] initWithName:@"音乐戏剧" image:@"yinyuexiju"],
                       [[HomeItemModel alloc] initWithName:@"国象围棋" image:@"guoxiangweiqi"],
                       [[HomeItemModel alloc] initWithName:@"科学探索" image:@"kexuetansuo"],
                       [[HomeItemModel alloc] initWithName:@"学科辅导" image:@"xuekefudao"],
                       [[HomeItemModel alloc] initWithName:@"亲子活动" image:@"qinzihuodong"],
                       ];
    return array;
}

@end
